package com.yh.csx.crm.service.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * StartTempCreditApprovalReq class
 *
 * @author huyalin
 * @date 2019/2/28
 */
@Data
@ToString
public class StartCreditApprovalReq extends CustomerAddReq {

    private Long customerId;

    @ApiModelProperty("公司代码")
    private String companyCode;

    @Size(max = 4, message = "付款条件超过最大长度")
    @ApiModelProperty("付款条件")
    private String paymentTerms;

    @Size(max = 2, message = "支付方式超过最大长度")
    @ApiModelProperty("支付方式 01转账、02现金（刷卡）、03支票、04信控、05账扣")
    private String payMode;

    @Size(max = 2, message = "账期超过最大长度")
    @ApiModelProperty("账期")
    private String paymentDays;

    @ApiModelProperty("客户级别")
    private String customerLevel;

    @ApiModelProperty("信控额度")
    private BigDecimal creditLimit;


}
